import request from '@/utils/request'

// 查询计件工资核算列表
export function listPieceWage(query) {
  return request({
    url: '/hr/pieceWage/list',
    method: 'get',
    params: query
  })
}

// 查询计件工资核算详细
export function getPieceWage(id) {
  return request({
    url: '/hr/pieceWage/' + id,
    method: 'get'
  })
}

// 新增计件工资核算
export function addPieceWage(data) {
  return request({
    url: '/hr/pieceWage',
    method: 'post',
    data: data
  })
}

// 修改计件工资核算
export function updatePieceWage(data) {
  return request({
    url: '/hr/pieceWage',
    method: 'put',
    data: data
  })
}

// 删除计件工资核算
export function delPieceWage(id) {
  return request({
    url: '/hr/pieceWage/' + id,
    method: 'delete'
  })
}
